package com.example.shixi.controller;

import com.example.shixi.domain.SysOperLog;
import com.example.shixi.domain.SysUser;
import com.example.shixi.service.LogService;
import com.example.shixi.util.JSONResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired
    private LogService logService;
    @GetMapping("/query/{pageNum}/{pageSize}")
    public JSONResult query(SysOperLog user, @PathVariable Integer pageNum, @PathVariable Integer pageSize){
        return logService.query(user,pageNum,pageSize);
    }
    @DeleteMapping("/del/{id}")
    public JSONResult del(@PathVariable Long id){
        return logService.del(id);
    }
}
